package com.xzan.medusa.core.manager;

import com.xzan.medusa.common.query.PageResult;
import com.xzan.medusa.dal.model.StockStrategyDO;
import com.xzan.medusa.dal.query.StockStrategyQuery;

import java.util.List;


/**
 * Manager for StockStrategy.
 */
public interface StockStrategyManager {
    /**
     * query count by query condition.
     */
    int countByQuery(StockStrategyQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(StockStrategyQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(StockStrategyDO record);

    /**
     * insert selective.
     */
    long insertSelective(StockStrategyDO record);

    /**
     * batch insert.
     */
    int batchInsert(List<StockStrategyDO> records);

    /**
     * select by query condition.
     */
    List<StockStrategyDO> selectByQuery(StockStrategyQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<StockStrategyDO> selectByQueryWithPage(StockStrategyQuery query);

    /**
     * select by primary key.
     */
    StockStrategyDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( StockStrategyDO record,  StockStrategyQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(StockStrategyDO record, StockStrategyQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(StockStrategyDO record);
}